package com.aaa.dem1103.d03;

import java.util.function.Function;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/3  17:40
 */
public class TestFunction {
    public static void main(String[] args) {
        Function<String,Integer> f= t->t.length();

        fun(f,"good evening");

    }
    public static void fun(Function<String,Integer> f,String str){
        Integer apply = f.apply(str);
        System.out.println(apply);
    }

}
